* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7f9;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-link {
    position: absolute;
    top: 10px;
    left: 10px;
    text-decoration: none;
    color: #2980b9;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: #6dd5fa;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #3d4e68;
}

header p {
    font-size: 1.1rem;
    color: #667282;
}

main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#mainInput {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#mainInput:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
}

#nowBtn {
    flex-shrink: 0;
    width: 50px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.3s;
}

#nowBtn:hover {
    background: #5a6268;
}

#nowBtn:active {
    transform: rotate(90deg);
}

.results-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px 30px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e0e6ed;
    gap: 15px;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.result-item .value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: #2980b9;
    font-weight: bold;
    flex-grow: 1;
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: 1px solid #ccc;
    color: #777;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #e9ecef;
    color: #333;
}

.copy-btn.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

@media (max-width: 768px) {
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
} 